package com.sdweizan.sdk.bytedance.bean.refund;

import com.alibaba.fastjson.annotation.JSONField;
import com.sdweizan.sdk.bytedance.bean.BdBaseResponse;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class BdQueryRefundResponse extends BdBaseResponse {
  @JSONField(name = "refundInfo")
  private RefundInfo refundInfo;

  @NoArgsConstructor
  @Data
  public static class RefundInfo {
    // 抖音退款单号
    @JSONField(name = "refund_no")
    private String refundNo;
    // 退款金额
    @JSONField(name = "refund_amount")
    private Long refundAmount;
    // 退款状态
    @JSONField(name = "refund_status")
    private String refundStatus;
    // 退款时间，Unix 时间戳，10 位，整型数，秒级
    @JSONField(name = "refunded_at")
    private Long refundedAt;
    // 退款账户枚举：
    // TRUE：分账后退款，现金户出款
    // FALSE：分账前退款，在途户出款
    @JSONField(name = "is_all_settled")
    private Boolean isAllSettled;
    // 开发者自定义字段，回调原样回传
    @JSONField(name = "cp_extra")
    private String cpExtra;
    // 退款错误描述
    @JSONField(name = "msg")
    private String msg;
  }
}
